package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "shop")
public class Shop implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer groupId;

    private Integer pianquId;

    private Integer userId;

    private String shopName;

    private String shopLogo;

    private Double longitude;

    private Double latitude;

    private Integer districtId;

    private Integer townId;

    /**
     *  行政区划编号
     */
    private String areaCode;

    private String proCity;

    private String address;

    private String telphone;

    private String email;

    private Integer state;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     *  统一社会编码
     */
    private String socialCode;

    /**
     *  企业创建日期
     */
    private String buildDate;

    /**
     *  法人姓名
     */
    private String legalPerson;


    /**
     *  法人手机号
     */
    private String legalPhone;

    private String headman;

    private String shopNo;

    /**
     *  企业类型 1 - 巡检企业  2 - 车辆管理企业
     *  1巡检  2:车辆预约的企业 3 烟花爆竹企业  4 - 监测设备企业  5 - 筒仓测距企业
     */
    private Integer shopType;

    /**
     *  领域类型
     */
    private Integer companyType;


    private Double storeLng;
    private Double storeLat;
    private Integer isOpenFace;


    private Long fireCheckSysUserId;
    private Long highCheckSysUserId;
    private Long spaceCheckSysUserId;
    /**
     * 最后批准人
     */
    private Long lastSubmitSysUserId;


    /**
     *  最后审核人id
     */
    private Integer fireChargeSysUserId;


    private Integer deviceShowType;

    private Integer isUpload;

    /**
     * 车辆预约公众号推送人
     */
    private Long carManagerSysUserId;

    @TableField(exist = false)
    private Long deviceCount;

}
